let tokenStorageKey = "tarde-token"
let token = uni.getStorageSync(tokenStorageKey)
let url = "ws://116.198.252.65:8001"
const Ws = uni.connectSocket({
	url,
	multiple: false,
	header: {
		[tokenStorageKey]:token,
		'content-type': 'application/json'
	},
	complete: () => {}
})
Ws.onOpen((e) => {
	console.log("ws open", e);
})
Ws.onClose((e) => {
	console.log("ws onClose", e);
})
Ws.onError((e) => {
	console.log("ws onError", e);
})
export default Ws